package com.perfect.dao;

import com.perfect.base.BaseMapper;
import com.perfect.model.ProductCountModel;
import com.perfect.query.ProductPlusQuery;
import com.perfect.vo.Product;
import org.springframework.dao.DataAccessException;

import java.util.List;

public interface ProductMapper extends BaseMapper<Product,Integer> {
     List<Product> selectProductPlusByParams(ProductPlusQuery productPlusQuery) throws DataAccessException;

     Integer deleteProductPlusBatch(Integer[] ids) throws DataAccessException;

    Integer updateProductPlus(Integer proId);

    List<Product> listProducts();

    List<ProductCountModel> selectProductCount();
}
